package com.example.demo.design.strategy;

import org.springframework.stereotype.Component;

/**
 * @className: LiSiHandle
 * @copyright: Copyright (C) 2019-2028, Inc. All rights reserved.
 * @company: 中兴新云.财务云
 * @author: 刘凯
 * @date: 2024/7/1
 * @Description: com.example.demo.handle
 */
@Component
public class LiSiHandle extends Handel{
    @Override
    public void aaa(String name) {
        System.out.println("执行了"+ LiSiHandle.class.getSimpleName()+"入参为"+name + "执行了a方法");
    }

    @Override
    public void bbb(String name) {
        System.out.println("执行了"+ LiSiHandle.class.getSimpleName()+"入参为"+name + "执行了b方法");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("李四", this);
    }
}
